package com.xhtt.modules.cfg.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.common.utils.Query;
import com.xhtt.modules.cfg.dao.CfgDictitemMapper;
import com.xhtt.modules.cfg.entity.CfgDictitem;
import com.xhtt.modules.cfg.service.CfgDictitemService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 数据字典表-明细表 服务实现类
 * </p>
 *
 * @author xj
 * @since 2019-01-18
 */
@Service
public class CfgDictitemServiceImpl extends ServiceImpl<CfgDictitemMapper, CfgDictitem> implements CfgDictitemService {

    @Override
    public PageUtils queryCfgPage(Map<String, Object> params) {
        Page<CfgDictitem> page = new Query<CfgDictitem>(params).getPage();
        page.setRecords(baseMapper.queryCfgPage(page, params));
        return new PageUtils(page);
    }
}
